package com.itzz.spring_zhoneHeng.service;

import com.itzz.spring_zhoneHeng.base.RestResponse;
import com.itzz.spring_zhoneHeng.pojo.BookShelf;
import com.itzz.spring_zhoneHeng.pojo.Order;

import java.util.HashMap;

public interface OrderService {
    //添加订单
    RestResponse addOrder(Order order,Integer bid,Integer userId);

    //查询所有的订单
    RestResponse queryAllOrder(Order order, Integer pageNum, Integer pageSize);

    //根据订单id删除订单
    RestResponse delOrder(Integer id);

    //根据订单id修改订单的状态  (以及修改用户的金额)
    RestResponse updateOrder(HashMap<String,Object> map, Integer id);
}
